package com.ask.forMe.controller.business;

import com.ask.forMe.mq.producer.UserBehaviorHandler;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rating")
@Tag(name = "隐式评分跟新接口")
public class RatingUpdateController {
    @Autowired
    private UserBehaviorHandler userBehaviorHandler;

    @GetMapping
    @Operation(summary = "跟新user-item的评分")
    public void test(Long userId, Long itemId) {
        userBehaviorHandler.handlePurchase(userId, itemId, null);
    }
}
